<?php
$files_to_load = array(
    "main_configuration" => "./configs/main_config.php",
    "database_configuration" => "./configs/database_configuration.php",
    "autoloader_class" => "./core/controllers/autoloader.php"
);

try { 
    foreach($files_to_load as $key => $value){
        if(file_exists($value)){
            require_once $value;
        }
        else {
            throw new Exception("Framework can't load to file: <strong>".$value."</strong>!");
        }
    }
} catch (Exception $ex) {
    echo $ex->getMessage();
}
